package com.sys.platform.entity;

import com.sys.platform.common.web.domain.DataBaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Transient;
import java.math.BigDecimal;

/**
 * 设备对象 camera
 *
 * @author yuanfuqiang
 * @date 2024-07-23
 */
@Data
public class Camera extends DataBaseEntity {

    @ApiModelProperty("设备名称")
    private String cameraName;

    @ApiModelProperty("设备编码")
    private String cameraCode;

    @ApiModelProperty("ip地址")
    private String ip;

    @ApiModelProperty("状态 （0离线 1在线）")
    private String status;

    @ApiModelProperty("父节点id")
    private String parentId;

    @ApiModelProperty("朝向")
    private String direction;

    @ApiModelProperty("可视域")
    private String viewshed;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("是否使用MD5（0关闭  1开启）")
    private String md5;

    @ApiModelProperty("主码流")
    private String mainStream;

    @ApiModelProperty("电表号")
    private String electricityMeterNumber;

    @ApiModelProperty("宽带号")
    private String broadbandNumber;

    @ApiModelProperty("汇聚引擎")
    private String aggregationEngine;

    @ApiModelProperty("是否录像 （0关闭  1开启）")
    private String video;

    @ApiModelProperty("实时拉流（0关闭  1开启）")
    private String realTimeStreaming;

    @ApiModelProperty("设备类型 (0大华 1海康 2宇视)")
    private String type;

    @ApiModelProperty("设备箱号")
    private String equipmentBoxNumber;

    @ApiModelProperty("接入模式（0 onvif 1自动生成 2厂商SDK）")
    private String accessMode;

    @ApiModelProperty("设备种类")
    private String kinds;

    @ApiModelProperty("属性值")
    private String attr;

    @ApiModelProperty("排序")
    private Long sort;

    @ApiModelProperty("经度")
    private BigDecimal longitude;

    @ApiModelProperty("纬度")
    private BigDecimal latitude;

    @ApiModelProperty("本地ip")
    private String localIp;

    @ApiModelProperty("项目id")
    private Long maintenanceId;

    @ApiModelProperty("区域id")
    private Long areaId;

    @ApiModelProperty("收藏夹id")
    private Long[] favoritesId;

    @ApiModelProperty("喇叭id")
    private Long hornId;

    @ApiModelProperty("来源id")
    private String sourceId;

    @ApiModelProperty("来源ip")
    private String sourceIp;

    @ApiModelProperty("设备别名（GB28181 编码 ID）")
    private String alais;

    @Transient
    @ApiModelProperty("用户id")
    private Long userId;
}
